Ordering and Selecting Records - Letters

Description

There are two ways to specify the records to print and the order in which they print. You can either save the criteria in the Letter layout, or prompt the user for the criteria at print time. These options are not mutually exclusive, so you can choose to save order and selection criteria, and then make changes to the criteria just before the Letter prints.

  1. To save order and selection criteria in a Letter layout, select Letter > Properties > Records. Selecting Records to Print:

    images/Letter_Record_Selection.gif
  2. When the Region Properties dialog box appears, click the Records tab. In the Order Expression box, enter an order expression. In the Filter Expression box, enter a filter expression.

  3. The Region Properties dialog box also lets you choose only marked or unmarked records, by clicking the Marked or Unmarked radio buttons.

  4. For the Additional Record Order and Filter Criteria, you can choose whether to base record selection on the current selection of records, or prompt the user at print-time.

  5. The Use filter/order from Query button lets you select filter/order criteria from a previously defined query.

You can also use Xbasic to order/select records. For example by using PRINT_LETTER( Letter_Name, Filter_Expression, Order_Expression ).